package com.zzy.blacklist;

import jodd.util.InExRules;

public class BlackRules {

	public static void main(String[] args) {
	        InExRules<String,String> inExRules = new InExRules<String,String>();
	        
	        //白名单
	        inExRules.include("shelf.book.*");
	        //黑名单
	        inExRules.exclude("shelf.book.page.1");
	        System.out.println(inExRules.match("shelf.book.page.1"));//false
	        System.out.println(inExRules.match("shelf.book"));//true
	        System.out.println(inExRules.match("shelf.book.page.34"));//true
	       
	}

}
